package com.hf.lookatme.zview.activitys;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.hf.lookatme.R;
import com.hf.lookatme.commons.CommonMethod;

import butterknife.ButterKnife;
import butterknife.OnClick;


/**
 * Created by JoeShiguang on 2015/6/2.
 */
public class Activity_PartTimeJob extends Activity_Base {

  private static String TAG = "Activity_Login";

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_parttimejob);
    ButterKnife.inject(this);
  }

  @OnClick(R.id.imageView_partTimeJob_collider)
  void onImageView_colliderClicked(View view) {
    if (CommonMethod.isFastDoubleClick()) {
      return;
    }
    doIntent(Activity_PartTimeJob_Collider.class);
  }

  @OnClick(R.id.imageView_partTimeJob_perennial)
  void onImageView_perennialClicked(View view) {
    if (CommonMethod.isFastDoubleClick()) {
      return;
    }

  }

  @OnClick(R.id.imageView_partTimeJob_vacation)
  void onImageView_vacationClicked(View view) {
    if (CommonMethod.isFastDoubleClick()) {
      return;
    }

  }

  @OnClick(R.id.imageView_partTimeJob_recent)
  void onImageView_recentClicked(View view) {
    if (CommonMethod.isFastDoubleClick()) {
      return;
    }

  }

  @OnClick(R.id.textView_partTimeJob_back)
  void onTextView_backClicked(View view) {
    if (CommonMethod.isFastDoubleClick()) {
      return;
    }
    Activity_PartTimeJob.this.finish();
  }

  /**
   * 跳转
   *
   * @param cls
   */
  private void doIntent(Class<?> cls) {
    Intent intent = new Intent();
    intent.setClass(this, cls);
    this.startActivity(intent);
  }
}
